#ifndef __TEST_TASKTEST_H__
#define __TEST_TASKTEST_H__

#include "../Base/Base.h"
#include "../Base/Logger.h"
#include <tbb/task.h>

using namespace tbb;

class CTaskTest : public task
{
public:
	CTaskTest(){}
	CTaskTest(int a)
	{
		m_a = a;
	}
	int m_a;
	inline task * execute()
	{
		int i=0;
		while (true)
		{
			i++;
			Sleep(10);
			DEFAULT_LOG_DEBUG("Start TestTask" << m_a);
			if (i > 100)
				break;
		}
		//wait_for_all();
		return NULL;
	}
};

#endif //__TEST_TASKTEST_H__